import request from '@/utils/request';

// 获取新闻列表
export const getNewsList = (params) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/New/GetNewList',
    method: 'GET',
    params
  });
}

// 添加新闻列表
export const addNews = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/New/AddNew',
    method: 'POST',
    data
  });
}

// 更新新闻列表
export const updateNews = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/New/UpdateNew',
    method: 'POST',
    data
  });
}

// 删除新闻列表
export const deleteNews = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/New/DeleteNew',
    method: 'POST',
    data
  });
}

// 启用新闻列表
export const enableNews = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/New/EnabledNew',
    method: 'POST',
    data
  });
}

// 禁用新闻列表
export const disableNews = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/New/DisabledNew',
    method: 'POST',
    data
  });
}
